<?php $basePath = base_path() ?>
<div id = "baogiasanpham">
  <?php $theme_path = base_path().path_to_theme() ?>
  <?php foreach ($node->taxonomy as $tid => $term): ?>
    <?php $n = strtolower($term->name) ?>
    <?php foreach ($node->field_baogia as $key => $value): ?>
      <?php $filePath = $value['filepath'] ?>
      <p><a href="<?php echo $basePath, $filePath ?>"><img style="margin-left:110px;" src="<?php echo $theme_path, '/images/download_', $n, '.png' ?>"/></a></p>
    <?php endforeach ?>
  <?php endforeach ?>
</div>

